/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package person;

import artifact.Artifact;
import java.util.Collection;
import java.util.Map;

/**
 *
 * @author Administrator
 */
public class Person
{
    private  String name;
    private Map <String,Artifact> artifacts;

    public Person(String name)
    {
        this(name, null);
    }

     public Person()
    {
        this("person", null);

    }

    public Person(String name, Map<String, Artifact> artifacts)
    {
        this.name = name;
        this.artifacts = artifacts;
    }



    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public Map<String, Artifact> getArtifacts()
    {
        return artifacts;
    }

    public void setArtifacts(Map<String, Artifact> artifacts)
    {
        this.artifacts = artifacts;
    }

    public void addArtifact (Artifact art)
    {
       artifacts.put(art.getName(), art);
    }

    public void removeArtifact (String artName)
    {
       artifacts.remove(artName);
    }
    public int getNumberArtifact ()
    {
        return artifacts.size();
    }

    public void clearArtifact ()
    {
        artifacts.clear();
    }



//DOKONCZYC BO KURWA NIC NIE ZWRACA!!!
//    public String getAllArtifactName ()
//    {
//        Collection coll = artifacts.values();
//
//
//        //return artifacts.values();
//
//    }

    public String fight ()
    {
        return"";
    }

    public void go (String place)
    {

    }



}
